#!/bin/sh
sleep 10
version_file="/tmp/sw_version"
dev_name=MINI-MX
content="V1.01"

if [ -f "$version_file" ]; then


        content=$(cat $version_file)


fi
echo $content

/usr/bin/wsdd --no_fork --if_name eth0 --type tdn:NetworkVideoTransmitter --xaddr "http://%s:1000/onvif/device_service" --scope "onvif://www.onvif.org/name/$dev_name onvif://www.onvif.org/Profile/Streaming"    &


/usr/bin/srvd --no_fork --ifs eth0 --firmware_ver $content --scope "onvif://www.onvif.org/Profile/Streaming" --scope "onvif://www.onvif.org/Profile/G" --scope "onvif://www.onvif.org/Profile/C" --scope "onvif://www.onvif.org/location/country/china" --scope "onvif://www.onvif.org/type/video_encoder" --scope "onvif://www.onvif.org/name/$dev_name" --scope "onvif://www.onvif.org/hardware/rgblink" --name RTSP --width 800 --height 600 --url "rtsp://127.0.0.1:554/$dev_name" --type JPEG  &


